﻿using UnityEngine;
using System.Collections;
using ProtoBuf.Message;
using System.Collections.Generic;

namespace Login
{
    public class LoginGetServerList : Fsm.FsmStateMonoBase<LoginState>
    {
       
        LoginManager manager = null;
        public LoginGetServerList(LoginState state, LoginManager ctrl) : base(state, ctrl) { manager = ctrl; }

        public override void Enter()
        {
            Debug.Log("[DEBUG] LoginGetServerList time = " + ServerTimerTool.ClientJavaTime());
            manager.AskGetServerList(() => {
                manager.loginUI.ShowServerPanel();
            });
        }

    }
}
